package lv.solcraft.replication.server.dao;

import java.util.List;

public interface DataAccess<PK, ENTITY> {

    void persist(ENTITY entity);

    boolean persistNew(ENTITY entity);

    ENTITY find(PK id);

    void delete(PK id);

    long countAll();

    List<ENTITY> findFirst(int limit);
}